/*
 * $Id: rgs.c,v 1.2 2006-02-16 07:14:39 bacon Exp $
 */

#include <xp/msw/rgs.h>
#include <xp/bas/memory.h>
#include <windows.h>

xp_rgs_t* xp_rgs_open (xp_rgs_t* rgs)
{
	if (rgs == XP_NULL) {
		rgs = (xp_rgs_t*) xp_malloc (xp_sizeof(xp_rgs_t));
		if (rgs == XP_NULL) return XP_NULL;
		rgs->__dynamic = xp_true;
	}
	else rgs->__dynamic = xp_false;

	return rgs;
}

int xp_rgs_close (xp_rgs_t* rgs)
{
	if (rgs->__dynamic) xp_free (rgs);
	return 0;
}

int xp_rgs_loadkey (xp_rgs_t* rgs, xp_rgsval_t* val)
{
	return -1;
}

int xp_rgs_savekey (xp_rgs_t* rgs, xp_rgsval_t* val)
{
	return -1;
}
